<?php namespace system\database\migrations;
use houdunwang\database\build\Migration;
use houdunwang\database\build\Blueprint;
use houdunwang\database\Schema;
class CreateMessageTable extends Migration {
    //执行
	public function up() {
		Schema::create( 'message', function ( Blueprint $table ) {
			$table->increments( 'm_id' );
            $table->timestamps();
            $table->string('m_name',100)->defaults('')->comment('留言者名字');
            $table->string('m_mail',100)->defaults('')->comment('留言者邮箱');
            $table->text('m_message')->defaults('')->comment('留言内容');
        });
    }

    //回滚
    public function down() {
        Schema::drop( 'message' );
    }
}